<link href="css/ChannelMenu.css" rel="stylesheet" type="text/css" />
<script language="javascript">
//切换搜索类别目录
function changeurl(str){
	$.get('<smart> $site_url </smart>/home/index.php',
			{action:'aj_get_class',search_type:str},
			function(data){
				$('#span_search_cate').html(data);
			}
		);
}
//提交表单，确定搜索路径
function search_submit(){
	var search_form = document.forms['form_search_nav'];
	if(document.getElementById('search_name').value == 'product'){
		search_form.action='product.php?action=list';  
	 }else if (document.getElementById('search_name').value == 'shop'){
	 	search_form.action='shop.php?action=list&slcShopClass='+document.getElementById('searchcate').value;  
	 }else{
	 	return false;
	 }
    search_form.method='POST';   
    search_form.submit(); 
}
</script>

<div id="ChannelMenu" style="width:760px">

<div id="menu_left"></div>
  <ul id="ChannelMenuItems">
    <li id="tag1"> <a href="index.php" <smart> if $search_header_sign eq '1' </smart> class="selectli1" <smart> /if </smart> style="margin:0px"><span <smart> if $search_header_sign eq '1' </smart>  class="selectspan1" <smart> /if </smart>>首页</span></a> </li>
    <li id="tag2"> <a href="shop_brand.php" <smart> if $search_header_sign eq '2' </smart> class="selectli2" <smart> /if </smart>><span <smart> if $search_header_sign eq '2' </smart> class="selectspan2" <smart> /if </smart>>品牌商店</span></a> </li>
    <li id="tag3"> <a href="category.php" <smart> if $search_header_sign eq '3' </smart> class="selectli3" <smart> /if </smart> ><span <smart> if $search_header_sign eq '3' </smart> class="selectspan3" <smart> /if </smart>>宝贝类目</span></a> </li>
    <li id="tag4"> <a href="product.php?action=list&channel_p_type=1" <smart> if $search_header_sign eq '4' </smart> class="selectli4" <smart> /if </smart> target="_top"><span <smart> if $search_header_sign eq '4' </smart> class="selectspan4" <smart> /if </smart>>二手集市</span></a> </li>
    <li id="tag5"> <a href="product.php?action=list&channel_p_type=2" <smart> if $search_header_sign eq '5' </smart> class="selectli5" <smart> /if </smart> target="_top"><span <smart> if $search_header_sign eq '5' </smart> class="selectspan5" <smart> /if </smart>>闲置物品</span></a> </li>
    <li id="tag6"> <a href="../bbs/" onclick="switchTag('tag6','content6');this.blur();" target="_top"><span>淘宝社区</span></a> </li>
    <!--LI> <A href="category.php"><SPAN>淘宝资讯</SPAN></A> </LI-->
	
	
    <li id="MenuInfo">
      <ul class="menu0" id="menu0" style="width:300px">
        <li <smart> if $search_header_sign eq '7' </smart> class="hover" <smart> /if </smart>> <a href="product.php?action=list&showpage=digital" target="_top"><span>手机</span></a> </li>
        <li <smart> if $search_header_sign eq '8' </smart> class="hover" <smart> /if </smart>> <a href="product.php?action=list&showpage=lady" target="_top"><span>女人</span></a> </li>
        <li <smart> if $search_header_sign eq '9' </smart> class="hover" <smart> /if </smart>> <a href="product.php?action=list&showpage=man" target="_top"><span>男人</span></a> </li>
        <li <smart> if $search_header_sign eq '10' </smart> class="hover" <smart> /if </smart>> <a href="product.php?action=list&showpage=sports" target="_top"><span>运动</span></a> </li>
        <li <smart> if $search_header_sign eq '11' </smart> class="hover" <smart> /if </smart>> <a href="product.php?action=list&showpage=life" target="_top"><span>家居</span></a> </li>
        <li <smart> if $search_header_sign eq '12' </smart> class="hover" <smart> /if </smart>> <a href="product.php?action=list&showpage=baby" target="_top"><span>母婴</span></a> </li>
        <li <smart> if $search_header_sign eq '13' </smart> class="hover" <smart> /if </smart>> <a href="product.php?action=list&showpage=game" target="_top"><span>游戏</span></a> </li>
      </ul>
    </li>
  </ul>
  <div id="content" class="content1">
    <div id="content1"></div>
    <div id="content2" class="hidecontent"></div>
    <div id="content3" class="hidecontent"></div>
    <div id="content4" class="hidecontent"></div>
    <div id="content5" class="hidecontent"></div>
  </div>
  <div id="SearchBox">
    <div id="SearchInnerBox" style="width:762px">
      <div id="SearchHome">
        <div id="SearchForm">
          <form method="get" action="" name="form_search_nav" id="form_search_nav" onsubmit="search_submit();">
            <!--action="product.php?action=list"-->
            <select name="search_name" id="search_name" onchange="changeurl(this.value)">
              <option value="product" selected="selected">搜索宝贝</option>
              <option value="shop">搜索店铺</option>
              <!--option value="shop">搜索掌柜</option-->
            </select>
            <input name="keyword" type="text" id="rr" />
            <span id="span_search_cate"><smart> $search_cate </smart></span>
            <input name="ww" type="submit" id="ww" value="搜索" />
            <a href="product.php?action=search">[ 高级搜索 ]</a>
          </form>
        </div>
      </div>
    </div>
  </div>
</div>